<html>
  <head>
    <script src="../graphql.js"></script>
    <script>
      var graph = graphql("https://graphql-pokemon.now.sh", {
        alwaysAutodeclare: true,
        asJSON: true,
        debug: true
      })

      var name = "pikachu"

      var pokemonImage = graph.query(`
        pokemon(name: $name) {
          image
        }
      `)

      var pokemonId = graph.query(`
        pokemon(name: $name) {
          id
        }
      `)

      pokemonId.merge('poke', {name: "Pikachu"})
      pokemonImage.merge('poke', {name: "Bulbasaur"})
      graph.commit('poke')
    </script>
  </head>
  <body>

  </body>
</html>